package com.itheima.dubbo.interfaces;

import com.itheima.commons.pojo.Publish;
import org.bson.types.ObjectId;

import java.util.List;

public interface PublishApi {
    String publish(Publish publish);

    List findPublish(Long userId, Integer page, Integer pagesize,Class type);

    List random(Integer pagesize,Class<?> type);

    List findPublishByPidList(List<Long> pidsList);

    Publish findPublish(ObjectId publishid);

    List<Publish> findPublishByuserId(Long userId, Integer page, Integer pageSize);
}
